var express = require('express')
var app = express()

var birds = require('./router/birds')
var cats = require('./router/cats')

app.use((req, res, next)=> {
  console.log(new Date().toLocaleTimeString(),req.method, req.path,req.params)
  next()
})
app.use('/birds', birds)
app.use('/cats', cats)


app.listen(3000, () => console.log('Example app listening on port 3000!'))